package com.lucas.rpc.framework.server.multiversion;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: LiuCheng
 * @description: 本地注册，用于绑定接口和不同版本的实现类
 * @date: 2023-11-27 20:35
 **/
public class LocalRegister {

    private static Map<String,Class> map = new HashMap();

    public static void register(String interfaceName,String version,Class implClass){
        map.put(interfaceName+version,implClass);
    }

    public static Class getImplClass(String interfaceName,String version){
        return map.get(interfaceName+version);
    }
}
